package com.lcxw.hxzbapi.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbapi.dao.mapper.AddCoinMapper;
import com.lcxw.hxzbapi.entity.pojo.AddCoin;

@Component
public class AddCoinService {

    @Resource
    AddCoinMapper addCoinMapper;


    public int deleteByPrimaryKey(Integer id){
        return addCoinMapper.deleteByPrimaryKey(id);
    }

    public int insert(AddCoin record) throws Exception {
        return addCoinMapper.insert(record);
    }

    public AddCoin selectByPrimaryKey(Integer id){
        return addCoinMapper.selectByPrimaryKey(id);
    }

    public List<AddCoin> selectAll(){
        return addCoinMapper.selectAll();
    }


    public int updateByPrimaryKey(AddCoin record){
        return addCoinMapper.updateByPrimaryKey(record);
    }

    public int selectSumAddCoinDync(String userName,  String startTime,
        String endTime, String adminName){
        return addCoinMapper.selectSumAddCoinDync(userName, startTime, endTime, adminName);
    }

    public List<AddCoin> selectAddCoinDync(String userName,  String startTime,
        String endTime, String adminName, int pageIndex, int pageSize){
        return addCoinMapper.selectAddCoinDync(userName, startTime, endTime, adminName, pageIndex, pageSize);
    }
}
